Fix the test for upload(mess up directory)