More tests on UnionFind