Adding some debug info to the flaky test.
Incorporating review comments by @awang.

Corrected the allowed redirect status code.