add tests for on and off functions