Add eventhandler test

resolves #5372