[cbc] Add the test case from #5156