unit tests for form builder