adding code to handle tests that cause unexpected exceptions -- this now leads to gracefully test failure. Added new regression test for this