Adding tests for rebalance