Expand test coverage of MemoryEngine