finished minSpanningTree test