fix redirect tests