Adapt test case exceptions to new standard defined in Redmine #4607.
Restore the printing of test outcome.

It was gone after 2f43316234b17.