Add test for new Lua functions