added patch from ticket https://rt.cpan.org/Ticket/Display.html?id=66495
added test for patch added by https://rt.cpan.org/Ticket/Display.html?id=66495