Add error message assertion