Change invalid assert calls to use Errors not AssertExceptions