Refactor TestParseMis