This patch adds some tests that cover the SMTP commands, including STARTTLS and various correctness checks. There are also two simple benchmarks, that are not optimized and are more useful for stress testing and profiling than anything else.