Added missing callback to iterator function.
Added a new testcase that covers collaborative editing.