Add more memory unit tests.