Add more to the .gitattributes and tweak template built tests.