Toggle: remove unit test dependency on working examples

Allows the toggle unit tests to be run by a single test
harness (#4439).
Merge pull request #4650 from patheard/unit-test-toggle

Toggle: remove unit test dependency on working examples