add a test for correctly applying the location header

correctly apllies the location header to the response when the response
status code is 3xx