Add checks for node ordering in merge function
Add more node order checks