Fixed a few problems in the unittests. CalDAV is back to 100% coverage.