Fix -Werror causing test scripts to fail