Fixes custom context behaviour in all event emitter methods; adds additional test coverage