display error message only when the test failed