Unit tests to check usage of starttls and login when available