unit tests added for JobDispatcher.