Add memory_iterator tests, add seekToBegin/seekToEnd