Fix upload test bug