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