 
             it "Then slave key should be encrypted", ->
                 @slaveKey.should.not.be.equal app.crypto.slaveKey
-
 
 
     describe "Create", ->

should = require('chai').Should()
async = require('async')
Client = require('request-json').JsonClient
app = require('../server')
user = require('../lib/user.coffee')
crypto = require('../lib/crypto.coffee')

client = new Client("http://localhost:8888/")

# connection to DB for "hand work"
db = require('../helpers/db_connect_helper').db_connect()

# helpers


        done()


    describe "Master key handling tests : ", ->
        describe "Initialization of the master key", ->
            before cleanRequest

            it "When I send a request to initialize the master key", (done) ->
                @randomValue = randomString 8
                data = pwd: @randomValue
                client.post 'accounts/password/', data, (err, res, body) =>
                    @response = res
                    done()

            it "And I send a request to check the salt", (done)->
                client.get 'data/102/', (error, response, body) =>
                    @body = body
                    done()
