Functional tests for form validation. Closes #208.