Add test case for PR 12921.