Fix tests to support the latest MongoDB nightly.