Fixed stm I test bugs