adds test for toggle button