test for repository