Flush the test stream after each result output to make sure results are not lost in the event of a crash