fixed #2004: Adding UserDefaultTest for TestLua.
Merge pull request #2316 from dumganhar/master

fixed #2004: Adding UserDefaultTest for TestLua.