[api] fix minor issue in tester