Finish DefectTrackerTests and cleaned up DocumentTests.