tests: fix compiling error (undefined reference)