fixed test case. httpClient issue, changed it to HttpURLConnection