As far as I know the thermostat is working. When it clicks on the burner roars. When it clicks off a little bit of gas leaks through the gas valve. It looks like a sooty candle flame. I did some banging on the heater and the leak is much smaller now. This tells me the gas valve is sticking inside.