Testing the functionality of the Node EventEmitter