Add more test coverage and support for Lcov