Figured it out! You need to either save the userDoc to the userDB, or config the couch to use an alternate database for the usersDb for your test. See run_on_modified_server in the cookie_auth test for usage.
Great! Thanks! Works now.I figured out that the user database is supposed to be called "_users". This info is only hidden somewhere in the depths of "Authentication and Authorization", not really easy to find.
Cheers, Lena
