Test for generator