Also added refactoring and added basic tests for the argument parsing in both ensurepip._main and ensurepip._uninstall._main.