add a test on toggle event