tests: test some obsoletes.
refactor: Base.build_transaction() so we can unit test its core.
tests: rename MockYumBase to MockBase.

reflects the real code better.
repo.metalink_data is gone (RhBug:1020934)