removed when dependency
added a method to empty a queue
Added e method to remove a job from the queue.
small fixes in the queue test.