add unit/integrted tests for dpc

I didn't get you. You mean writing like this is OK?