add test to assert correct redirection when the host changes in the location header.