Add tests for queue memory-limit.
Add tests for queue memory-limit.
Finish queue-memory-limit