Add Cursor tests

@lmorduch: Please review.