unittests: Fix -Werror build