Remove function we are not using
Lua build issue

Avoid build Lua script build error with --enable-developer.
There was an unused variable, so it never reporting a valid LUA
when built with that option.
Improve LUA test script

Add an error code to the information passed to LUA