moved processing of output to the end of each test case run so that it will capture and compare against any output that happens during the run