Remove references to non-existent modules
Merge pull request #1433 from Ichimonji10/sphinx

Remove references to non-existent modules
Port old API tests for repositories

Completely rewrite existing tests in module `test_repository_v2`. Make them more
terse, efficent and thorough. Drop module `test_repository`, as the "v2" module
now performs its responsibilities.