use the file class to create and write the test file