add a test to verify that redirects don't add extra headers