moved file handling to TestFile