fix bugs: delete initTest functions.
Merge pull request #4290 from boyu0/delete_initTest_in_testcpp

[ci skip]fix bugs: delete initTest functions in TestCpp.