testing event emitters