testing eventEmitting