move test lua_fns to the test functions