Add unit test for queues.