Revert "removed memory test"

This reverts commit 94a67b0b3668b2e0c0f5cd2633fd8dfa8a910b6e.
commented unused things from test