add unit/integrted tests for dpc

Tom, thanks for the review!