Tests for form validation