[docs] API docs for testing