Add toggle-test (closes #1505)