Add test for generation of workers