added cpp test