testsuite: eliminate warnings
As it is now we don't run the test suite with -Werror
and the warnings seem to accumulate and increase. We should eliminate the warnings in test suite under gcc8 and include its build on the -Werror
build to prevent it from being impossible to work with.