add tests for json methods in nodescontroller