Add memory tests.