[dev]add new test case for api