Fixes  expectError fails on unexpected error

This is the fix for issue #3 

The tests were altered to expose the bug, then the code was fixed. The last test in the suite is to test that the suite actually completed.