Adding test case for MessageService