Extending tests on errors thrown by the Expectation object