[api] fix testing