Added more tests for MessagingUtils