Improve failed test output

This change improves the failed test output for the test suite.