add unit/integrted tests for dpc

The negation is for detector correction.