add unit/integrted tests for dpc

This is probably the function where the reference should go as this is the main user API into this functionality.