build a test for messages