add unit/integrted tests for dpc

This is mutating the input data which is a first order bad.