Added test for send message function