callgraph.py: fixed test case for generators