add test case relevant to PR 14871