Wrote defect tests.