Added test case to verify the number of workers