small changes to make defect test work