Update global input stream position and unit test - for hbase compatibil...

Essential fix to global position bug for HBASE functionality.