Simplify test_stdin_from_file by using temp_file_1
Simplify test_stdout_to_file and test_stdout_to_file_append by using
temp_file_3