check connection to mongo in tests