Implemented validation of HMMs