test file uploading a document