I think these tests would be better if they triggered the event instead of calling the handler directly. Currently this only tests the handler code and not the event listening aspect. That approach would also allow you to remove the handler function from the public api.