add unit/integrted tests for dpc

Personally, I think windowing might be a better approach.