[test] check `headerSent` and `_emittedHeader` are set in response stream