refactoring functional NodeInfoTest