MODE-1807 - Fixed the validation of residual child definitions
MODE-1807 - Changed the order of steps in the node validation algorithm and updated the test case that caused this issue
MODE-1807 - Fixed the validation of residual child definitions