adding test event handler