Corrected and added defect for GC test

@aparajit-pratap