Added a test for click emit

Added a test for click emit