[server][test] Use the abstract wrapper function.