Made dequeue a visit, added queue unit testing, fixed a queue bug