add cpp-unit test src code for analyse