#8725-R: fix old API in other test cpp files