add test for saveCursor() and restoreCursor()