Add integration test for TLS