fixed up testGenerator