Fix for upload unittest.
Merge pull request #138 from arjenk/bugfix/upload-unittest

Your pull request has been merged, thank you bro.