use mongo in test.