Add tests for RestClient.