detect the right transport for the client in tests