(PUP-2291)(PUP-2292) Fix yumrepo's absent and test them

This is a commit that would close two pull requests at once: one for more testing and the other one to fix the bug.

See commits for more details.