fix:Update the some test cases for lua

1.Update the TestLua/TouchesTest by using the new event-dispatcher
2.Add the deprecated function for the “dumpCachedTextureInfo” and update the related test case