connectEdges(): more cases

test is a square surrounded by triangles