issue #2404:replace deprecated functions in testlua and hellolua sample