Fixes mongodb tests.  Closes #1964