Added tests for testing client event emitter.