example of how to test a form with input validation