Rewrite MessageIteratorTest