modify test of temperatrue_min and temperature_max

they may return nil