add unit/integrted tests for dpc

Define specific exception here, probably AttributeError?