fixes testHMM