added tests for files functions
don't attempt to parse body for saveFile
removed useless logging in tests
Merge pull request #4 from aenario/bugfix/files

Bugfix/files