[server][testDBClientConfig] Unify duplicated code