[fix] using HttpResponse instead of CloseableHttpResponse
[fix] improved test