[PATCH v2 12/12] tools: update test_hmm script to support SP config