add unit/integrted tests for dpc

They are not critical errors and the program can still go on. I think it's enough to send out some logging warnings.