Add tests for bad content and to_addr in sent_to and reply_to and fix lack of checking in send_to.