rewrote event unit test