fix synchronizatio bug and stream position bug in HdfsFileInputStream
add test cases for HdfsFileInputStream
Merge pull request #591 from shimingfei/AddTestCaseForHdfsFileInputStream

Fix synchronization bug and stream position bug in HdfsFileInputStream, and Add test cases for the class