         it "When I send a request to check existence of Note with id 123", \
                 (done) ->
             client.get "data/exist/123/", (error, response, body) =>
+                response.should.be.json
                 @body = JSON.parse body
                 done()
 

describe "Test section", ->

    before (done) ->
        # check database state for tests : insert id 321
        db.save '321', {}

        # start app
        app.listen(8888)

            should.exist @body.exist
            @body.exist.should.be.ok

    describe "Find", ->
        it "When I send a request to get Note with id 123", (done) ->
            client.get "data/123/", (error, response, body) =>
                # TODO add catch of needed elements

        it "Then error 404 should be returned", ->
            # TODO add check http return value

        it "When I send a request to get Note with id 321", (done) ->
            client.get 'data/321/', (error, response, body) =>
                response.should.be.json
                @body = JSON.parse body
                done()

        it "Then {} should be returned", ->
            @body.should.equal {"value":"val"}
