add unit/integrted tests for dpc

I really don't think we need to go through a masked array here, just set the diagonal to 0.