Migrated messagingTests to the unit tests framework.