fix hgpoller keep inserting the change set
changed function named to_int -> addOid
fix failing tests - some tests were expecting an int value

some tests were expecting an int value and string was return
Merge branch 'pull675'