Adding test for generator