PERL-264 added test for closing connection when MongoClient object leaves scope