fix code coverage mechanism