Fix tests when guzzle 4 is not installed