add unit/integrted tests for dpc

Yes and let the calling function deal with the exception.