Fix API tests for package uploads