Correctly use resetMongoDb() in an async fashion