test cursor implementation