catch runtime errors and display current test case before rethrow