Fixed undefined MongoClient in mongodb tests