text: Title: Add cli tests to ensure args are correctly routed to function args
  Body: click has a `CLIRunner` to test CLI applications, however, it's limiting (e.g., monkeypatch doesn't work well). So we started to modify the `test_cli.py` tests to call the functions directly (e.g., `install.main(use_lock=True)`. But given this change, we are no longer testing that cli args actually become the right function arguments (e.g., if we pass `--use-lock`), this should imply, we pass `install.main(use_lock=True)`, so we now have to add those tests.