server: Fix syncronous API usage in request, tests not re-entrant