added module-level docstring for test_mem