add unit/integrted tests for dpc

They're odd in the datasets I got. I'm not sure if they are odd all the time.

I wrote this 'mid_col = cols // 2 + 1' according to Hanfei's original verified code.