Changed printing of test errors to better identify failed test cases.