 db = connection.database('cozy')
 
 
-describe "Test section", ->
 
-    before (done) ->
-        # Prepare database for tests
-        db.save '321', {"value":"val"} # insert id 321 : Existence
+before (done) ->
+    # Prepare database for tests
+    db.save '321', {"value":"val"} # insert id 321 : Existence
 
-        # start app
-        app.listen(8888)
-        done()
+    # start app
+    app.listen(8888)
+    done()
 
-    after (done) ->
-        app.close()
-        done()
+after (done) ->
+    app.close()
+    done()
 
-    describe "Existence", ->
+
+
+describe "Existence", ->
+    describe "Check Existence of a Note that does not exist in database", ->
         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 {exist: false} should be returned", ->
            should.exist @body.exist
            @body.exist.should.not.be.ok
            
        it "When I send a request to check existence of Note with id 321", \
                (done) ->
            client.get "data/exist/321/", (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
