fixes bug of printing an empty queue, begins fixing tests