Add a test for minimum spanning tree.