var mongoose = require('mongoose');

before(function (done) {
    if (mongoose.connection.db) {
        return done();
    }

    mongoose.connect('mongodb://localhost/orange-api', done);
});

after(function (done) {
    mongoose.connection.db.dropDatabase(done);
});

@@ -177,24 +177,71 @@
 pi', done);%0A
+    mongoose.connection.db.dropDatabase(done);%0A
 %7D);%0A%0Aafter(f

Fix testsuite bug