Add tests for socket transport for email