Get tests permissions right.
Ignore tests-generated files.