To test repository function