unit tests for src/os/FlatIndex.cc

http://tracker.ceph.com/issues/4542 refs #4542