add test_file_write