reduce code a bit. Have run_tests in unit write to the test_results.log file. References #3296