add unit/integrted tests for dpc

This over writes `_a`, that smells wrong to me.