Add generator factory tests