Fix function name reporting in doctest