more tests for event emitting