Fix the error message in the test