test: add a missing static specifier

Redmine: fixes #2550