test: extract client response process