 
     request.post createTeamRequestParams, (err, res, body) ->
       expect(err)             .to.not.exist
-      expect(res.statusCode)  .to.be.equal 500
-      expect(body)            .to.be.equal 'Couldn\'t create the group.'
-      done()
-
-
-  it 'should send HTTP 500 when slug is not set', (done) ->
+      expect(res.statusCode)  .to.be.equal 400
+      expect(body)            .to.be.equal 'Company name can not be empty.'
+      done()
+
+
+  it 'should send HTTP 400 when slug is not set', (done) ->
 
     createTeamRequestParams = generateCreateTeamRequestParams
       body   :

    queue = [

      ->
        # expecting HTTP 200 status code
        request.post createTeamRequestParams, (err, res, body) ->
          expect(err)             .to.not.exist
          expect(res.statusCode)  .to.be.equal 200

      body        :
        invitees  : inviteeEmail

    # parsing default request parameters
    { slug
      email
      domains
