adapt relative_index test after change in structure of function node