Writing tests for errors on user registration form