Completed memory class accessors. Added tests.