Fixed queues and tests.

Must refactor the queue paskeros, though.