added testSetRegisterRedirectRoute