add unit/integrted tests for dpc

It might be a good idea to remove `roi` and `bad_pixels` an assert that the input to this function must be pre-cleaned.  It simplifies this code and make the overall library more modular.