add unit/integrted tests for dpc

This is fine to leave in, you don't need to comment it out.  `nosetests` will ignore it, but it allows you to test this file by itself.