HHH-9091 : Cascaded collection delete fails due to wrong execution sequence (test case)

(cherry picked from commit 3b57f1612d40ae74eb0001aa67e86182e3dfedcd)