Add test case for PR15779, which has previously been fixed.