Write test results to output file.