add tests for toggle