Fixed a bug where T.TestCase does not catch AssertionErrors.