Test: added a memory efficiency test.