Add test case from RT#54758.