NSW Court of Appeal finds defects duty