Fixes tests for NewWorker method