Adding cobertura coverage analysis, and some unit tests.