add test case for outgoing message manager.