Added unit tests to outbound messages