Add tests for form data extraction functions