Fix CLI tests for package uploads