Fixed: Favor CURLOPT_WRITEFUNCTION before CURLOPT_RETURN_TRANSFER.

Guzzle provides a write function where the response body should be written to
which was not used when the return transfer option is set as well.

Adds more tests.