Updated test for error message