Oh now I see why you've added a `warnings` array to the class. Surely there is some way to do verify warning count without cluttering the class. Can't you maintain a count in the test context somewhere and check it before exiting the test?