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