Changed test_outfile to avoid accidental overwriting of existing output files