Added unit tests for auto generation of Sensor during definition creation