add unit/integrted tests for dpc

I would encounter a RuntimeWarning: divide by zero encountered in divide. If you think the warning is OK, I will bench mark these two.