fix bugs: delete initTest functions in TestCpp.