more code-shuffle for TestMemoryPortInterface