memory: document and test the newly-added functions.