fix redirect test