[PM-QA PATCH 2/3] thermal: add sanity checking before executing tests