added tests for uploading files