send message test code implemented