second set of tests for undirected