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