writing test files