fix cpp test