preparation for insertElementsInBranch test