Avoid error message appearing in unit test output.

using patch from https://rt.cpan.org/Ticket/Display.html?id=68678