test for respository