Fix tests to work with differnt versions fo Lua