Added test for minimal spanning tree.