Clean up error messages for failed tests.