Move class temp_source_file from input.c to selftest.c/h