[PATCH v5 2/2] mm/hmm/test: add self tests for HMM