C++ codes test coverage