test to build a generator