Output test results to file