added simple tests for sendmail