This isn’t sufficient to check that the "header" event was actually emitted; only that if it is emitted, it’s value is an object. A better test would verify that the header event is emitted that that the `header` object contains the expected values.