Add tests of (currently) broken mmap semantics.

Tests discussed in #629.