   companyName = "testcompany#{generateRandomString(10)}"
 
   defaultBodyObject =
-    slug           :  companyName
-    email          :  generateRandomEmail()
-    agree          :  'on'
-    allow          :  'true'
-    domains        :  'koding.com, gmail.com'
-    invitees       :  invitees
-    redirect       :  ''
-    username       :  username
-    password       :  'testpass'
-    newsletter     :  'true'
-    companyName    :  companyName
-    alreadyMember  :  'false'
-    passwordConfirm:  'testpass'
+    slug           : companyName
+    email          : generateRandomEmail()
+    agree          : 'on'
+    allow          : 'true'
+    domains        : 'koding.com, gmail.com'
+    invitees       : invitees
+    redirect       : ''
+    username       : username
+    password       : 'testpass'
+    newsletter     : 'true'
+    companyName    : companyName
+    alreadyMember  : 'false'
+    teamAccessCode : ''
+    passwordConfirm: 'testpass'
 
   deepObjectExtend defaultBodyObject, opts
 

  params               = { url, body }
  defaultRequestParams = generateDefaultRequestParams params
  requestParams        = deepObjectExtend defaultRequestParams, opts
  # after deep extending object, encodes body param to a query string
  requestParams.body   = querystring.stringify requestParams.body

  return requestParams


module.exports = {

JTeamInvitation = require '../../../workers/social/lib/social/models/teamtoken'

{ expect
  generateUrl
  querystring
  deepObjectExtend
  generateRandomEmail
  generateRandomString
