remove deprecated code in lua tests & template
Merge pull request #6005 from flashjay/develop

remove deprecated code in lua tests & template