fix test for error message