add unit/integrted tests for dpc

phi : ndarray