testing repository function