Fixed list_queues and its tests.