fix toggling tests
Merge pull request #957 from opf/fix/test_toggler

fix toggling tests