Added tests for worker pool.