Added tests for toggle