Fixed test on endless redirect
Fixing https test