Added checking against unauthorized write, 12/17 mmap tests pass