fix some bugs for lua-tests
Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into v3_fix
Merge pull request #6886 from samuele3hu/v3_fix

fix some bugs for lua-tests