:beforeEach defined in job_dispatcher_spec
test added for dispatchTask method.