Skip tests if there is no mongodb connection