prepare to write test file