yum: refactor yum.New for easier testing
test: use yum.newClient