Bug in WeightedQuickUnion + more tests.