updated todo comment
added test case for on/off toggle