Some tests for redirect loops.

Bug: 54403
Change-Id: I5e8a55c9d2edfcd2772e9e11f27662305b070347
Merge "Some tests for redirect loops."