tests moved to their own file, minor fix - preventing a node from connecting to itself.