Fixed a bug where the InMemoryQueue wasn't working like the ServiceBusQueue.