add unit/integrted tests for dpc

integrated_test requires a set of images, instead of only one. It's difficult to use synthetic data for the integrated test and to verify the result.