tests: move rpms and the yum repo to the same folder.

so its the same like ordinary repos.
tests: add testing of Repo.get_package().

Replaces create_mock_package with a proper MockPackage class for adhoc package mocking.