Fixed a problem where uncaught exceptions were not caught properly.

The symptom of this is that all test suites break the moment one test case fails. The root cause appears to be a typo.
Merge pull request #65 from mdu/master

Fixed a problem where one test case failure causes the entire test suite to fail