Thermostat and its tests added.