Lua testcode changes