[Sandeep] - Fixing asserts in defect_analysis_spec