Check against specific errors in the tests