Prepare tests for methods encapsulation
Move get_value_from_memory to Memory

Also encapsulate some methods in Memory