Add first (unit and integration) tests for (remote) repositories

Merged username-removed-26331 requested to merge grote/repomaker:repo-tests into master