HDSFileAccess unit test.
For now, for TFile and HFile implementation
Changes to make test pass
Merge pull request #1021 from siyuanh/hds1

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