Add worker generator test
Fix regression for generator test
Avoid generator test tmp folder