Refactor tests


git-svn-id: https://svn.calendarserver.org/repository/calendarserver@11974 e27351fd-9f3e-4f54-a53b-843176b1656c