add unit/integrted tests for dpc

I will check with Hanfei on this. Will let you know if something would be wrong if they are even.