Test that exception is thrown during MongoClient constructor