test for a repository