Bug/curl file creation

Fixes erroneous creation of files on FileResponse. Adds some unit tests for CurlFile adapter.

Kindest regards

Adam