fix rebalance tests