Add test on endless redirect