add unit/integrted tests for dpc

I think the detector array is assumed to have a square size.