InputStream and File should be closed (Fix #266)

When InputStream or File was given as a :body then it was consumed but
never closed causing "Too many open files" errors.

I have also added two new tests:
- check if InputStream is read and closed
- check if File is read