Add unit test for CDP