fixed global leak of variable key

caught a global variable leak when i was running multipart upload through mocha