use shared handlers in redirect tests