You might consider checking the length of this instead of checking the specific string, as if you change the string for the required field error this test will break.