add unit/integrted tests for dpc

I would do this as

```python
for indx, img in enumerate(img_sequence):
    cur_row, cur_col = np.unravel_index(indx, (rows, cols))
```