Fix lcov test failures