Added test for parameters passed to event handler