unionfind to test