test compute CG.C