Fixing tests for newer versions of guzzle