- added unit tests for memory
- added unit tests for memory