writing UndirectedNode tests