Fix redirect tests