Fix redis tests

The list of queues is not guaranteed to be in order
Add tests for MemoryEngine::queue()