add k-hmm forward test