test to file