add unit/integrted tests for dpc

How about making pixel_size, focus_to_det and energy optional? Thanks.