Added cursor test for internal node rebalancing and fixed.