Modified test_file_output