Added a test to ensure that request headers are properly reset