Fixes mongodb tests