unit tests for form helper