Testcase for ticked 4742

This adds a testcase for that ticket, that used to freeze (I could reverify with at least 1.60), but works well now.

Cheers,
  Simon