Ticket #5050: Added test case since it works now.
Merge pull request #243 from simartin/ticket_5050_testcase

Ticket #5050: Added test case since it works now.