Created test case for generate(6)