add and update eventhandler unit tests.