jessebaker → credited hemanshu_412 → .
Resolved the issue that was causing tests to fail.
1. Refactored the replaceUUIDsAndUpdateModel() and insertMultipleNodes() code, Converted them into a utility function and Wrote unit tests for the same.
2. As for combining insertMultipleNodes() and insertNode(), I tried multiple approaches, and some approaches and none of them approach worked properly from my end as single and multiple nodes were working, but editing the component threw errors every time when we tried to combine them.
I will be working on this issue.