Correct wonky pointer arthimetic in mmap write
Improve unit test for mmap store