test for rebasing