hwtest/ptherm: add thermal threshold tests