Write test for sub-cursor. Fix editpath for sub-cursor