Make tests use Node object instead of dict

A number of tests were passing dicts to methods instead of the Node
object. This fixes the tests and some various places in code were doing
node.get() instead of just accessing the Node object attribute directly.

Change-Id: I6d39c861fe771714bdac3b85cbb798f27850565d
Merge "Make tests use Node object instead of dict"