Using new iterator method for an easier for-each loop.
Adapted MessageTest to other tests.