Test with queues