tweak gdc and add gdc test