Update MemoryTest.java

Fixed memory issue?