add unit/integrted tests for dpc

You should check the performance difference between `np.sum(().real)` and `np.sum().real`.