test for generation