Update DynamicMemoryTest.cpp