Added test for EventEmitter class.