test file written