added test for RestClientException