cov.cpp unit test polished