fix tests that break when PERL_INSTALL_QUIET=1 (RT#97464)

Fix for https://rt.cpan.org/Ticket/Display.html?id=97464