test and fix bugs in getaddednodeinfo