       client.sessionToken        = newToken
       client.connection.delegate = account
 
-      if opts.userFormData?
+      if opts?.userFormData?
       then callback { client, account, sessionToken : newToken }
       else callback { client, account, sessionToken : newToken, userFormData }
 


withConvertedUser = (opts, callback) ->

  { context, userFormData } = opts  if opts

  context      ?= { group : 'koding' }



module.exports = {
  _
  daisy
  expect
  withDummyClient
