Fix upload/download controller tests