issue #1803:add SpriteBatchNodeOffsetAnchorScale

Add a test case named SpriteBatchNodeOffsetAnchorScale in SpriteTest for lua.
Refactor the codes, and may be should refactor all lua files to use lua feature.
Will pull another pull request to do the refactor work.