Fix thermostat unit tests