improvement in mongoose connection test