improve lua test