Warning fixes for TestCpp. Using lambda, CC_CALLBACK_1 and clone pattern.
Adding resource for ComponentTest.
Merge pull request #2967 from dumganhar/develop

Warning fixes for TestCpp and adding resource for ComponentTest.