add test cases for weighted quick union find