Fix upload unit test