Add tests for message exporting and aggregates.