added test for click event