New helper ApiTestCase::setExpectedApiException()