TestCase::assertException() improved