add cpp test example