Add gcov test coverage (written to build/test/coverage) and a couple more tests.