lib/replace: Add test for what flag we need for -Werror behaviour