catching the failure right in the test method