generator test not pass