Fix segfault in storage test case
Add more tests for FileMap