Added test to make sure rebasing goes to the lowest global count.