Fix test for broken LuaJIT versions, solves #1152