fix upload tests.