[mongodb] fix test to work with latest version of Mongo client