add a pybench test for complex function calls (part of #1819)