add api test case for dns manager