more unit tests for memory handlers