Use correct local variable name in tests for py-3.8.2

In python 3.8.2, the local variable name is called testfunction.
1 file changed