Automated Assessment Of Student-Written Tests Based On Defect-Detection Capability