test: refactor installCli tests to use unstable mocks for improved isolation