add test for insertFromCur