Add test demonstrating that CPAN #51491 has been fixed.

For: https://rt.cpan.org/Ticket/Display.html?id=51491