Added tests for form validation.