added tests to toggler