Adding unit test for the worker pool