Ticket #5120: New test case, that works now that #5125 is fixed

Hi,

Following the fix for #5125, this ticket has become invalid. This PR adds the associated test case to the regression suite. Thanks to merge.

Best regards,
  Simon