add unit/integrted tests for dpc

remove this function.