test redirect with* methods and related code.