Refactor TestRebase to run tests as part of the Travis build