add unit/integrted tests for dpc

Li, thanks for the suggestion. It's very good. I will work on it tonight.