Make unit tests write to the test_results log

run_tests in unit, was not writing out app_name to the test_results.log. Reduce the code a bit. References #3296