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