test sample with mongo DB