Add tests for click events