Those tests are setting objects, not strings.  The rest of the API docs use _id and integers.