Added test for form validation