add unit/integrted tests for dpc

Is `cols` and `rows` always odd?