inititialized thermostat and tested