[api] fix testsuite failure