Testing a connection to the REST API