Added some more command tests
Changed switching relay code to return if the relay was toggled and added tests for it