Fixed the test build with --enable-gcc-warnings