unit tests for messaging framework