Change update by findAndModify and fix the error when updating was not working on registerNode.
Fix test
Merge pull request #247 from willyaranda/fix_update_by_findandmodify

Change update by findAndModify and fix the error when updating was not w...