Add test for cursor.rewind.