unit test for ding service