mmap test fix