issue #1942: Adding LayerTest, first commit.
Updating layerTest.lua.
fixed #1942: LayerTest for TestLua is ok.
Merge pull request #2293 from dumganhar/iss1942-layertest

fixed #1942: LayerTest for TestLua is ok.