add unit/integrted tests for dpc

I would write this as 'selects roi `im[r:r+row, c:c+col]`' or something like that.  'upper left' is very confusing as you don't specify where (0, 0) is.