added cleanUp() and close() calls to fix tests in Windows
fixed assertion (size can also be long)
added cleanup to RESTful tests, fixed RESTful download
Merge pull request #75 from ukoethe/test-windows

Added a few fixes to make the test suite run on Windows