Add worker generator test
Merge pull request #2019 from dlackty/generator-test

Add generator test