Add code for generating test files.