added testing for cpp