add unit/integrted tests for dpc

Does that mean the code is incorrect or the input values are incorrect?  In either case, you need to figure it out and fix the test so it _does_ pass.  

How did you generate these `ydata` arrays?