Add tests to loader-mercurial
The loader-mercurial does not have tests (unit/integration).
(There is a verifier module which i don't use)
I'm using bare toplevel and repositories to make sure everything is fine but errors can slip through.
Add some.
Migrated from T954 (view on Phabricator)