tests: fix old-style function definition