Test the click listener event for button.