Added a bunch of unittests.
100% coverage for both Cal and CardDAV