[docs] [issue11468] Improve unittest basic example in the doc