added node_test.go, made consequent fixes