add tests for disconnecting/connecting to nodes in node connect handler