fixed test for error message