Added error messages if a test fails