CPP Tests migrated to the new C++11 API

Many tests were converted to the C++11 API
and some tests were also simplified by using the "CL" macro
instead of the "CF" macro.
[C++ 11] Bug fix for the usage of lambda in testBasic.cpp while using GCC compiler.
Merge pull request #2813 from dumganhar/ricardoquesada-tests_less_warnings

Merge https://github.com/cocos2d/cocos2d-x/pull/2812