feat(#41): add test support for event listeners