Add failing test for Cursor export.
Remove duplicate Cursor constructor.

Now only the exported Cursor constructor is used.