add unit/integrted tests for dpc

can this be called `weighting` or something similar?