Make test/misc.lua compatible with Lua 5.1