(test) updated doc tests, fixed a typo