[PATCH v5 10/10] tools: update test_hmm script to support SP config