added test file generation