add unit/integrted tests for dpc

I think the best solution here is to make a copy in this case:

```python

if bad_pixels is not None:
    im = im.copy()
    for row, col in bad_pixels:
        im[row, col] = 0