MemoryTest: add method for testing
am: 6de0aa81a3

Change-Id: Ia60fbfa165691d370b877ab2a18591295f60fe6f