Generator unit test