test mongodb connect