test for click event handler