add unit/integrted tests for dpc

Thanks, Tom. This is better