Ticket #5356: Added test case that works following the fix for #5506.
Merge pull request #246 from simartin/ticket_5356

Ticket #5356: Added test case that works following the fix for #5506.