repository tests: improve coverage