Adding a test to ensure that a HeadersEvent is emitted for a HEAD request