made testNode.cpp more concise with a couple new functions