-Bongo                               = require 'bongo'
 koding                              = require './../bongo'
 { argv }                            = require 'optimist'
 KONFIG                              = require('koding-config-manager').load "main.#{argv.c}"
 
-{ daisy }                           = Bongo
-{ expect }                          = require 'chai'
 { hostname }                        = KONFIG
 { Relationship }                    = require 'jraphical'
-{ convertToArray
+{ hat
+  daisy
+  expect
+  request
+  querystring
+  convertToArray
   generateRandomEmail
   generateRandomString }            = require '../../../testhelper'
 { generateRegisterRequestParams }   = require '../../../testhelper/handler/registerhelper'

      done()


  # TODO: this somehow returns 200, needs to be investigated
  it.skip 'should send HTTP 400 when email is not valid', (done) ->

    # setting email as random string
    createTeamRequestParams = generateCreateTeamRequestParams

{ generateCreateTeamRequestBody
  generateCreateTeamRequestParams } = require '../../../testhelper/handler/teamhelper'

reservedTeamDomains = require '../../../../workers/social/lib/social/models/user/reservedteamdomains'

JUser                               = null
JName                               = null
