refator the generator tests