Fix tests for comments
Add support for fallbacks if mmap doesn't work