Adding Test case for Kruskal with toString