Allow pretty print of tests which fail with a non-zero return code
#1004 Added testcase