tests: cleanups in support.py
tests: reenable the repo cost testing again.

This takes some refactoring and hawkey needed to improve support for
loading real Yum MD into the testing sacks (see hawkey commit d9d7184).