Add ugly test for bug 62868

Resubmitted from https://gerrit.wikimedia.org/r/#/c/119989/.