[cocos2d] Fix the tests following the changes in maccore