@WIP: Add test to check HTTP response status is 301.

#5718 

WIP

Marking this as WIP as still the test is not passing.