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