tests: fixed the test case added in commit 6ef948150.
tests: one minor Perl code style fix.
bugfix: memory leak cound happen when both cosocket connection pools and "lua_code_cache off" were used. this regression had appeared in the ssl cosocket patch, i.e., commit 5aed1966.