Refactor FormHelper tests