Added test for SMTP server
Added documentation and tests