to check for failed test case