Tests for MongoDB functionality