Event emitter tests