add integration test for uploading file