[scheduling] Fix flow graph tests to have full resource topology and add special case for root node in branch configuration.