add unit tests for form definer