InputStream 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

This pull request replaces #267