Move all possible tests to Lua