Testing of button behavior