test-lib: fix bug in setting worker_connections