test rebase functions