add test for rebase