Added test for dequeue from JobManager.