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.