add unit/integrted tests for dpc

Did you talk to han fai about using windowing instead of this padding scheme?