Modification for UnitTesting to HttpClient request