Bug 987351 - Refactor caldav_test.js and enable the tests of it.