Fix typo to text form test
Decouple the test form implementation by using have_error_message method