improved test, added NodesInfo mock to allow initial connection and added more checks