Fixes an exception handling bug. If a test throws an exception, it was caught and logged, but the test could still pass as a false positive if the exception being thrown is not expected within the test. The fix allows an expected exception class to be declared and if an exception of a different class is thrown during a test, the test will fail.