This if case is the only part that could break without being noticed by Travis. I don't think this is worth all the effort. I have 2 test systems with TLS enabled, this should be enough.