Adding tests to cursor example