unit test for button