Restoring code coverage by testing