Tests of button event