Implement some tests that verify that we are correctly updating gitattributes when rewriting or unlinking the corresponding files.