added more tests, added on and off check
0.2.1