added generator function and generator function test