tests: Fix compile error with --enable-maintainer-mode