fix MongoDB tests