Fix tests with new response object
bug fix for curl response parsing