add a test for mmap