Update test for issue 6740 (name functions)