Testing MongoDB functionality