modified makefile and add cpp test