Added error mesage to the test case