Update the Deprecated Func
Fix the lua-tests compile error in the release condition