add messaging model unit tests.