updating unit test of repository with cursor