add unit/integrted tests for dpc

ndarray