add unit/integrted tests for dpc

Why isn't this code (with the above + ref image + iterable of images as arguements) a function in the dpc module?