added validated send message functions to the producer and the initial tests