add unit test for GenerateBuilderHandler