added test for hmm learning