Clean up reading of test files.