Finish implementation and tests for memory medium