fix test api