fix cpp target tests