check connection to endpoint in tests