Add test case for issue 11969

I forgot to add test case in #3140.