Test outfile before starting