             should.exist @body.exist
             @body.exist.should.be.ok
 
-    describe "Find", ->
+
+
+describe "Find", ->
+    describe "Find a Note that does not exist in database", ->
         it "When I send a request to get Note with id 123", (done) ->
             client.get "data/123/", (error, response, body) =>
                 @response = response

db = connection.database('cozy')


describe "Test section", ->

    before (done) ->
        # Prepare database for tests
        db.save '321', {"value":"val"} # insert id 321 : Existence

        # start app
        app.listen(8888)
        done()

    after (done) ->
        app.close()
        done()

    describe "Existence", ->
        it "When I send a request to check existence of Note with id 123", \
                (done) ->
            client.get "data/exist/123/", (error, response, body) =>

        it "Then error 404 should be returned", ->
            @response.statusCode.should.equal(404)

    describe "Find a Note that does exist in database", ->
        it "When I send a request to get Note with id 321", (done) ->
            client.get 'data/321/', (error, response, body) =>
                response.should.be.json
