Prim minimum spanning tree tested