lua: add back the extension tests lost during the Lua 5.2 upgrade