added more tests, and cobertura to measure coverage (which is now 94% line coverage, yeah!)