test the rebase operation