add event handler test