added test for RestClient.