Test buttonClicked