Add unit test for dpc_fit