add unit/integrted tests for dpc

By saying 'harmful in the short run', you mean there is one additional layer of function call?