Moved code for adding a node into the view model.
Modified the tests to highlight and fix problems with initializing empty data models.