add unit/integrted tests for dpc

This exception will raise an exception.