 
     it 'should pass error if account is already registered', (done) ->
 
-      withDummyClient ({ client })->
+      withDummyClient ({ client }) ->
         userFormData = generateDummyUserFormData()
         client.connection.delegate.type = 'registered'
         JUser.convert client, userFormData, (err) ->


      it 'should be able to register user with upper case username', (done) ->

        withDummyClient ({ client })->
          userFormData          = generateDummyUserFormData()
          userFormData.username = userFormData.username.toUpperCase()
          testConvertWithValidData client, userFormData, done


    it 'should pass error if username is a reserved one', (done) ->

      withDummyClient ({ client }) ->
        queue             = []
        userFormData      = generateDummyUserFormData()
        reservedUsernames = ['guestuser', 'guest-']
