Added tests for HMM

tests for HMM