Added a bunch of unit tests to maximize Cobertura coverage.