fix chaining issue between IPromise and IHttpPromise and added test