breaks expectError test cases up to expose bug

When the error thrown is not the error expected, the test case doesn't
fail. The test suite stops at the line that threw the error and it
appears to be waiting for something. The pause button is still lit up as
if the test were still running.