Test case for MODE-2122

(Targeted against 3.x, I'll verify it's still a problem on master shortly.)