add unit/integrted tests for dpc

Why are you slicing the results like this?

I really don't think this function should exist, just use `minimize` directly in `dpc_runner`.   That way you have access to the `OptimizeResult` which also includes things like goodness of fit measures.