add unit/integrted tests for dpc

Have you build the docs and verified that this looks correct?