Add test for emitting event without listener.