add unit/integrted tests for dpc

You should use logging here, not print statements.

See http://nikea.github.io/NSLS2/resource/dev_guide/logging.html