test for cpp programme