add unit/integrted tests for dpc

Yes, but I think it is better to add another parameter for this in case there is no need to correct gx.