add tests for click and js-event