Fix tests with stock

Since res.users create a partner, handle cases when only name or login are supplied

Signed-off-by: Sandy Carter <sandy.carter@savoirfairelinux.com>