Fix bugs and add unit test for TFile/HFile FileAccess impl

If the key doesn't exist, move to the next key which is greater than the given key