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

Hi,

I'm not sure how I managed to get a crash and opened this ticket a few months ago, but it now works... Hence this pull request to simply add the test case. Thanks to consider pulling.

Cheers,
  Simon