test extending from event emitter