Display exception correctly if test throws a string.