test for toggle