Added an simple EventEmitter class and its tests.