Fix broken upload tests