use Test::Nginx::Socket::Lua from the test-nginx project in our test suite.
added test cases for commit 2a121317.