Fix for upload unittest.