Fix mongodb tests