Added a test for command sensors with bad configurations.
1. Moved template testing out of main test. 2. Added test for bad command.
Added tests to create and check basic functionality of command sensor.