test for WorkerFactory