Write files before running tests.