Test code for Cocos2D API